{% extends 'base.html' %}
{% load i18n %}
{% block content %}
<table>
<form method="post"> {% csrf_token %} 
{% for category in categories %}
{% if category.interest_set.all %}
<tr><td colspan=2>{{category.name}}
{% for item in category.interest_set.all %}
<tr><td><td> <input type='checkbox' name='follow' value='{{item.id}}'  {% if item in current.interest %}checked='true'{%endif%}>{{item.name}} 

{% endfor %}
{%endif%}
{% endfor %}
<tr><td colspan="2"><input type="submit">
</form> 
</table>
{% endblock %}